package types

type ReqAddGate struct {
	ThingID   string `json:"thing_id" form:"thing_id" binding:"required"`
	UserId    int64  `json:"user_id" form:"user_id" binding:"required" json:"user_id,omitempty"`
	FaceImg   string `json:"face_img" form:"face_img" binding:"required" json:"img_path,omitempty"`
	StartTime int    `json:"start_time" form:"start_time" json:"start_time,omitempty"`
	EndTime   int    `json:"end_time" form:"end_time" json:"end_time,omitempty"`
}

type SendAddPerson struct {
	Type           int    `json:"type"`
	Code           string `json:"code"`
	Name           string `json:"name"`
	Sex            string `json:"sex"`
	Birthday       string `json:"birthday"`
	Accesstimefrom int    `json:"accesstimefrom,omitempty"`
	AccesstimeTo   int    `json:"accesstimeto,omitempty"`
	Url            string `json:"url,omitempty"`
	Feature        string `json:"feature,omitempty"`
	Image          string `json:"image,omitempty"`
}

type ReqModifyGate struct {
	Id int64 `json:"id" form:"id" binding:"required" json:"user_id,omitempty"`
	//ThingID   string `json:"thing_id" form:"user_id" binding:"required"`
	FaceImg   string `json:"face_img" form:"face_img" binding:"required" json:"img_path,omitempty"`
	StartTime int    `json:"start_time" form:"start_time" json:"start_time,omitempty"`
	EndTime   int    `json:"end_time" form:"end_time" json:"end_time,omitempty"`
}

type ReqDelGate struct {
	Id int64 `json:"id" form:"id" binding:"required"`
}

type ReqQueryGateList struct {
	StationId string `json:"station_id" form:"station_id" binding:"required"`
}

type ReqUserGateList struct {
	BasePage
	ThingId string `json:"thing_id" form:"thing_id"`
	UserId  int64  `json:"user_id" form:"user_id"`
}
